//
//  Seach_SearchResultMain_Nav_WX.m
//  ZITHER
//
//  Created by weixin on 2019/4/1.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Seach_SearchResultMain_Nav_WX.h"

@implementation Seach_SearchResultMain_Nav_WX

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setShadowType1WithColor:[UIColor defaultShadowColor] offset:CGSizeMake(0, 5) opacity:1 radius:3];
        
        [self addSubview:self.labTitle];
        [self addSubview:self.emptyBtn];
        [self addSubview:self.cancelBtn];

        [self.labTitle mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(10);
            make.bottom.equalTo(self.mas_bottom).offset(-14);
            make.height.mas_equalTo(16);
        }];

        [self.emptyBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.labTitle.mas_right).offset(10);
            make.centerY.equalTo(self.labTitle.mas_centerY).offset(0);
//            make.top.equalTo(self.mas_top).offset(20);

            make.height.width.mas_equalTo(16);
        }];
        
        [self.cancelBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self).offset(-15);
            make.centerY.equalTo(self.labTitle.mas_centerY).offset(0);
            make.height.mas_equalTo(16);
        }];
        
    }
    return self;
}

-(BaseLab *)labTitle{
    if (!_labTitle) {
        _labTitle = [BaseLab initCustomLab:@"筛选" color:HexColor(0x333333) font:[UIFont fontWithName:@"PingFang-SC-Regular" size:15]];
    }
    return _labTitle;
}

- (BaseBtn *)emptyBtn{
    if (!_emptyBtn) {
        _emptyBtn = [BaseBtn initCustomBtn:@[@"搜索_筛选_删除关键字"]];
//        _emptyBtn.backgroundColor = [UIColor redColor];
    }
    return _emptyBtn;
}

- (BaseBtn *)cancelBtn{
    if (!_cancelBtn) {
        _cancelBtn = [BaseBtn initCustomBtnTitlestype:@[@"取消"] color:@[baseColorTheme]];
        _cancelBtn.titleLabel.font = [UIFont fontWithName:@"PingFang-SC-Regular" size:15];
    }
    return _cancelBtn;
}


@end
